1#ifndef HEADER_MODEL_EVENT
2#define HEADER_MODEL_EVENT
8#include "../Generic/List/OrderedList.hpp"
9#include "../Generic/Date/Date.h"
10#include "../Generic/String/String.h"
49 void read(std::istream& istr);
51 void write(std::ostream& ostr);
std::ostream & operator<<(std::ostream &ostr, const Event &event)
Writes Event to stream with << operator.
Definition: Event.cpp:130
std::istream & operator>>(std::istream &istr, Event &event)
Reads Event from stream with >> operator.
Definition: Event.cpp:86
void configureEventInsertionOp(unsigned setting)
Configures how Event should be shown, when written to stream with << operator.
Definition: Event.cpp:120
Stores the declaration of class Hall.
Stores the declaration of class Reservation.
Stores the declaration of class Ticket.
Stores a day, month and year.
Definition: Date.h:14
Stores an event's hall, name, date, bought tickets and reservations.
Definition: Event.h:19
void write(std::ostream &ostr)
Writes Event to stream.
Definition: Event.cpp:64
OrderedList< Ticket > & get_tickets()
Returns reference to bought tickets.
Definition: Event.cpp:12
const Date & get_date() const
Returns constant reference to date on which event will be held.
Definition: Event.cpp:36
OrderedList< Reservation > & get_reservations()
Returns reference to reservations.
Definition: Event.cpp:20
Event()
Calls default constructors on data.
Definition: Event.cpp:4
const String & get_name() const
Returns constant reference to name of event.
Definition: Event.cpp:32
const Hall & get_hall() const
Returns constant reference Hall in which event will be held.
Definition: Event.cpp:28
void read(std::istream &istr)
Reads Event from stream.
Definition: Event.cpp:48
int compare(const Event &other)
Compares two events.
Definition: Event.cpp:74
Each hall contains a number, rows and seats per row.
Definition: Hall.h:13